home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / MPW Oberon 2.1168 / OInterfaces / OCEErrors.mod < prev    next >
Encoding:
Text File  |  1995-08-07  |  17.6 KB  |  303 lines  |  [TEXT/MPS ]

  1. (*
  2.      File:        OCEErrors.mod
  3.  
  4.      Contains:    Apple Open Collaboration Environment Error Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs.applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. *)
  19.  
  20. (*$TAGS-*)
  21. (*$CALLING PASCAL*)
  22. MODULE OCEErrors;
  23.  
  24. IMPORT Errors;
  25.  
  26. (* $PUSH*)
  27. (* $ALIGN MAC68K*)
  28. (* $LibExport+*)
  29.  
  30. CONST
  31.     kOCEToolboxNotOpen*            = -1500;                        (* Toolbox not open; perhaps its closing *)
  32.     kOCEInvalidCommand*            = -1501;                        (* Request code passed to a trap call is invalid *)
  33.     kOCEInvalidRef*                = -1502;                        (* a reference to an object is obsolete or invalid *)
  34.     kOCEBufferTooSmall*            = -1503;                        (* the buffer supplied is too small for the task *)
  35.     kOCEVersionErr*                = -1504;                        (* some manner of software version mismatch *)
  36.     kOCESyncAsyncErr*            = -1505;                        (* Op tried synchronously may only be done async, or vice versa *)
  37.     kOCEInternalErr*                = -1506;                        (* the OCE toolbox has an internal error *)
  38.     kOCENotAnOwner*                = -1507;                        (* this operation can only be done by the object's owner *)
  39.     kOCENotImplemented*            = -1508;                        (* Feature not implemented *)
  40.     kOCENotAuthenticated*        = -1509;                        (* The user must be authenticated *)
  41.     kOCEAlreadyExists*            = -1510;                        (* The object being added already exists *)
  42.     kOCEDoesntExist*                = -1511;                        (* the object being referenced doesn't exist or cannot be found *)
  43.     kOCEConnectionErr*            = -1512;                        (* Unable to open or maintain a network transport *)
  44.     kOCEConnectionClosed*        = -1513;                        (* Connect has closed *)
  45.     kOCEInvalidRecipient*        = -1514;                        (* Invalid recipient/address for this command *)
  46.     kOCEInvalidIndex*            = -1515;                        (* invalid index (out of range) *)
  47.     kOCERefIsClosing*            = -1516;                        (* Object references is being closed, cannot complete command *)
  48.     kOCEHasPendingMsgs*            = -1517;
  49.     kOCEInvalidConfiguration*    = -1518;
  50.     kOCERequiredServicesNotAvailable* = -1519;
  51.     kOCEServerInactive*            = -1520;
  52.     kOCEMoreDiskSpaceNeeded*        = -1521;                        (* Inadequate disk space to safely complete operation *)
  53.     kOCEParamErr*                = Errors.paramErr;                        (* invalid parameter passed to toolbox *)
  54.  
  55. (* AOCE Authentication Errors (-1540 to -1609) *)
  56.     kOCEReadAccessDenied*        = -1540;
  57.     kOCEWriteAccessDenied*        = -1541;
  58.     kOCEAccessRightsInsufficient* = -1542;                        (* stream needs to be authenticated, or not authorized, or someone other than agent trying to TPFC, or problem in server-to-server authentication *)
  59.     kOCEUnsupportedCredentialsVersion* = -1543;                    (* don't know how to read that version of credentials *)
  60.     kOCECredentialsProblem*        = -1544;                        (* couldn't successfully decrypt credentials *)
  61.     kOCECredentialsImmature*        = -1545;                        (* current time < first valid time *)
  62.     kOCECredentialsExpired*        = -1546;                        (* current time > expiry time *)
  63.     kOCEProxyImmature*            = -1547;                        (* current time < proxy start time *)
  64.     kOCEProxyExpired*            = -1548;                        (* current time > proxy expiry time *)
  65.     kOCEDisallowedRecipient*        = -1549;                        (* Recipient not specified in proxy *)
  66.     kOCENoKeyFound*                = -1550;                        (* found no key for entity in question *)
  67.     kOCEPrincipalKeyNotFound*    = -1551;                        (* couldn't decode proxy because principal has no key *)
  68.     kOCERecipientKeyNotFound*    = -1552;                        (* recipient has no key *)
  69.     kOCEAgentKeyNotFound*        = -1553;                        (* in TPFC, agent has no key *)
  70.     kOCEKeyAlreadyRegistered*    = -1554;                        (* entity already has a key *)
  71.     kOCEMalformedKey*            = -1555;                        (* key is of an unknown encryption method, or key doesn't match password *)
  72.     kOCEUndesirableKey*            = -1556;                        (* password too short, key too simple, or trying to change cluster key to the same value *)
  73.     kOCEWrongIdentityOrKey*        = -1557;                        (* In CheckIdentity, name doesn't exist or key is wrong *)
  74.     kOCEInitiatorKeyProblem*        = -1558;                        (* either we couldn't find the initiator's key or we found it but couldn't successfully decrypt instructions or proxy *)
  75.     kOCEBadEncryptionMethod*        = -1559;                        (* the specified encryption method is not supported *)
  76.     kOCELocalIdentityDoesNotExist* = -1560;                        (* LocalIdentity has to be setup *)
  77.     kOCELocalAuthenticationFail*    = -1561;                        (* LocalIdentity Login has to be done for this operation *)
  78.     kOCELocalIdentitySetupExists* = -1562;                        (* LocalIdentity setup exists, use change instead of setup *)
  79.     kOCEDirectoryIdentitySetupExists* = -1563;                    (* DirectoryIdentity setup exists, use change instead of setup *)
  80.     kOCEDirectoryIdentitySetupDoesNotExist* = -1564;                (* DirectoryIdentity setup does not exist *)
  81.     kOCENotLocalIdentity*        = -1565;                        (* Use LocalIdentity calls instead! *)
  82.     kOCENoMoreIDs*                = -1566;                        (* identity table is full *)
  83.     kOCEUnknownID*                = -1567;                        (* identity passed is not valid *)
  84.     kOCEOperationDenied*            = -1568;                        (* LocalID operation denied *)
  85.     kOCEAmbiguousMatches*        = -1569;                        (* ambiguous matches found in resolving CIDs (more than 1 CID) *)
  86.     kOCENoASDSPWorkSpace*        = -1570;                        (* No ASDSP workspace passed for Open Secure Stream *)
  87.     kOCEAuthenticationTrouble*    = -1571;                        (* generic authentication problem *)
  88.  
  89. (* AOCE Catalog Errors (-1610 to -1680) *)
  90.     kOCENotLocal*                = -1610;                        (* the server does not serve the requested dNode *)
  91.     kOCETooBusy*                    = -1611;                        (* server cannot complete call at this time *)
  92.     kOCEDatabaseFull*            = -1612;                        (* disk is full *)
  93.     kOCETargetDirectoryInaccessible* = -1613;                    (* Catalog server not responding *)
  94.     kOCEBogusArgs*                = -1614;                        (* Args not formatted correctly on the wire *)
  95.     kOCENoSuchDNode*                = -1615;                        (* the requested dNode does not exist *)
  96.     kOCEDNodeUnavailable*        = -1616;                        (* could not find any servers that serve the requested dNode *)
  97.     kOCEBadRecordID*                = -1617;                        (* invalid RecordID (usually name and/or type don't match cid) *)
  98.     kOCENoSuchRecord*            = -1618;                        (* the specified record does not exist *)
  99.     kOCENoSuchAttributeValue*    = -1619;                        (* The attribute value that was passed in does not exist *)
  100.     kOCENoSuchPseudonym*            = -1620;                        (* the specified pseudonym does not exist *)
  101.     kOCEAttributeValueTooBig*    = -1621;                        (* self-explanatory *)
  102.     kOCETypeExists*                = -1622;                        (* The type already exists in the record *)
  103.     kOCEMoreData*                = -1623;                        (* only a warning - buffer not big enough *)
  104.     kOCERefNumBad*                = -1624;                        (* RefNum is not valid *)
  105.     kOCEStreamCreationErr*        = -1625;                        (* problem creating stream *)
  106.     kOCEOperationNotSupported*    = -1626;                        (* the specified catalog does not support this operation *)
  107.     kOCEPABNotOpen*                = -1627;                        (* specified Personal Catalog is not open to make the operation *)
  108.     kOCEDSAMInstallErr*            = -1628;                        (* specified CSAM could not be installed *)
  109.     kOCEDirListFullErr*            = -1629;                        (* catalog list is full, try removing an entry *)
  110.     kOCEDirectoryNotFoundErr*    = -1630;                        (* catalog was not found in the list *)
  111.     kOCEAbortNotSupportedForThisCall* = -1631;                    (* this call cannot be aborted *)
  112.     kOCEAborted*                    = -1632;                        (* this call was aborted *)
  113.     kOCEOCESetupRequired*        = -1633;                        (* LocalIdentity Setup is required *)
  114.     kOCEDSAMRecordNotFound*        = -1634;                        (* CSAM Record not found *)
  115.     kOCEDSAMNotInstantiated*        = -1635;                        (* CSAM is not instantiated *)
  116.     kOCEDSAMRecordExists*        = -1636;                        (* CSAM record already exists *)
  117.     kOCELengthError*                = -1637;                        (* supplied buffer was too small *)
  118.     kOCEBadStartingRecord*        = -1638;                        (* Lookup starting record is not within range *)
  119.     kOCEBadStartingAttribute*    = -1639;                        (* Lookup starting attribute is not within range *)
  120.     kOCEMoreAttrValue*            = -1640;                        (* attribute value could not fit into buffer (even though it was the only value) *)
  121.     kOCENoDupAllowed*            = -1641;
  122.     kOCENoSuchAttributeType*        = -1642;
  123.     kOCEMiscError*                = -1643;                        (* some other error *)
  124.     kOCENoSuchIcon*                = -1644;                        (* no matching icon from GetDirectoryIcon *)
  125.     kOCERLIsDontMatch*            = -1645;                        (* RLIs do not match in lookup *)
  126.     kOCEDirectoryCorrupt*        = -1646;                        (* Serious disk fill corruption problem *)
  127.  
  128. (* AOCE Standard Mail Errors (-1900 to -1949) *)
  129.     kSMPNotEnoughMemoryForAllRecips* = -1900;
  130.     kSMPCopyInProgress*            = -1901;
  131.     kSMPMailerNotInitialized*    = -1902;
  132.     kSMPShouldNotAddContent*        = -1903;
  133.     kSMPMailboxNotFound*            = -1904;
  134.     kSMPNoNextLetter*            = -1905;
  135.     kSMPHasOpenAttachments*        = -1906;
  136.     kSMPFinderNotRunning*        = -1907;
  137.     kSMPCommandDisabled*            = -1908;
  138.     kSMPNoMailerInWindow*        = -1909;
  139.     kSMPNoSuchAddress*            = -1910;
  140.     kSMPMailerAlreadyInWindow*    = -1911;
  141.     kSMPMailerUneditable*        = -1912;
  142.     kSMPNoMatchingBegin*            = -1913;
  143.     kSMPCannotSendReceivedLetter* = -1914;
  144.     kSMPIllegalForDraftLetter*    = -1915;
  145.     kSMPMailerCannotExpandOrContract* = -1916;
  146.     kSMPMailerAlreadyExpandedOrContracted* = -1917;
  147.     kSMPIllegalComponent*        = -1918;
  148.     kSMPMailerAlreadyNotTarget*    = -1919;
  149.     kSMPComponentIsAlreadyTarget* = -1920;
  150.     kSMPRecordDoesNotContainAddress* = -1921;
  151.     kSMPAddressAlreadyInList*    = -1922;
  152.     kSMPIllegalSendFormats*        = -1923;
  153.     kSMPInvalidAddressString*    = -1924;
  154.     kSMPSubjectTooBig*            = -1925;
  155.     kSMPParamCountErr*            = -1926;                        (*  enclosure count != 1, while sendEnclosure Only == true. *)
  156.     kSMPTooManyPages*            = -1927;                        (*  Exceeding the image page limit. *)
  157.     kSMPTooManyEnclosures*        = -1928;
  158.  
  159. (* AOCE Standard Catalog Errors (-1950 to -1969) *)
  160.     kSDPNoSearchText*            = -1950;
  161.     kSDPTooManyLoginAttempts*    = -1951;
  162.     kSDPNoSelection*                = -1952;
  163.     kSDPPersonalDirectoryRepairFailed* = -1953;
  164.  
  165. (* AOCE Digital Signature Errors (-1970 to -1999) *)
  166.     kSIGOperationIncompatibleErr* = -1970;                        (* context in use for different type of operation *)
  167.     kSIGCertificateQueryDenied*    = -1971;                        (* can't query certificates with this context *)
  168.     kSIGVerifyFailedErr*            = -1972;                        (* verification failed *)
  169.     kSIGInvalidCredentialErr*    = -1973;                        (* verified OK but credential out of date,  either pending or expired *)
  170.     kSIGIndexErr*                = -1974;                        (* the index given is outside the range of allowable values *)
  171.     kSIGSignerErr*                = -1975;                        (* problem with the signer or signature itself *)
  172.     kSIGPasswordErr*                = -1976;                        (* password is incorrect *)
  173.     kSIGInternalsErr*            = -1977;                        (* an internal error occurred like a bad digest, context or signature *)
  174.     kSIGToolboxNotPresentErr*    = -1978;                        (* for client services (ie servers) to report back - not retruned by the TB *)
  175.     kSIGContextPrepareErr*        = -1979;                        (* context either prepared with VerifyPrepare, SignPrepare or DigestPrepare already or has been corrupted *)
  176.     kSIGNoDigestErr*                = -1980;                        (* no digest in the signature *)
  177.     kSIGConversionErr*            = -1981;                        (* unabled to convert an attribute to Mac format *)
  178.     kSIGSignerNotValidErr*        = -1982;                        (* Signer has either expired or is pending and can not sign *)
  179.     kSIGNoSignature*                = -1983;                        (* standard file signature not found *)
  180.  
  181. (* AOCE Templates Errors (-15000 to -15039) *)
  182.     kDETInvalidTargetAspectName*    = -15000;                        (* Could not locate an aspect by name *)
  183.     kDETInvalidTargetItemNumber*    = -15001;                        (* Item number is target invalid (out of range 1..<number of children>) *)
  184.     kDETInvalidTargetFromNonAspect* = -15002;                    (* Target selection relative to non-aspect object which requires an aspect *)
  185.     kDETInvalidTargetDSSpec*        = -15003;                        (* Target DSSpec could not be resolved *)
  186.     kDETUnknownTargetSelector*    = -15004;                        (* Unknown selector type for target specification *)
  187.     kDETInvalidTarget*            = -15005;                        (* Target specification was invalid (for reasons other than those above) *)
  188.     kDETTargetNotAnAspect*        = -15006;                        (* Specified target object was not an aspect *)
  189.     kDETInvalidCommandItemNumber* = -15007;                        (* Command item number invalid (out of range 1..<number of items in selection>) *)
  190.     kDETUnableToGetCommandItemSpec* = -15008;                    (* Unable to retrieve item specification (internal error, possibly out of memory) *)
  191.     kDETRequestedTypeUnavailable* = -15009;                        (* Command item could not be represented in the form requested *)
  192.     kDETInvalidDSSpec*            = -15010;                        (* Could not resolve DSSpec (other than in target; see error above for targets) *)
  193.     kDETUnableToAccessProperty*    = -15011;                        (* Property could not be found and/or created *)
  194.     kDETInfoPageNotOpen*            = -15012;                        (* Info-page not open; request requires an open info-page *)
  195.     kDETNoSuchView*                = -15013;                        (* No view found with specified property number *)
  196.     kDETCouldNotAddMenuItem*        = -15014;                        (* Could not add item to dynamic menu *)
  197.     kDETCouldNotRemoveMenuItem*    = -15015;                        (* Could not remove item from dynamic menu *)
  198.     kDETCouldNotFindMenuItem*    = -15016;                        (* Could not find menu item *)
  199.     kDETCouldNotFindCustomView*    = -15017;                        (* Could not find custom view in info-page *)
  200.     kDETInvalidReqFunction*        = -15018;                        (* Invalid call-back request function *)
  201.     kDETInvalidCallBack*            = -15019;                        (* Invalid call-back (for reasons other than those above) *)
  202.     kDETPropertyBusy*            = -15020;                        (* Edit is open on the property being set *)
  203.  
  204. (* AOCE Mail Errors (-15040 to -15089) *)
  205.     kMailInvalidOrder*            = -15040;                        (* This object has already been written to and cannot be written again *)
  206. (* handle non-zero offsets for now *)
  207.     kMailInvalidSeqNum*            = -15041;                        (* Invalid letter sequence o refers to an non–existent letter *)
  208.     kMailAttrNotInHdr*            = -15042;                        (* attribute does not exist in this letter header *)
  209.     kMailHdrAttrMissing*            = -15043;                        (* required attribute not written into letter header *)
  210.     kMailBadEnclLengthErr*        = -15044;                        (* incorrect number of bytes has been written after memForm of PutEnclosure *)
  211.     kMailInvalidRequest*            = -15045;                        (* cannot putAttr for report, putRcptReport for letter *)
  212.     kMailInvalidPostItVersion*    = -15046;                        (* cannot create new postit with this version *)
  213.     kMailNotASlotInQ*            = -15047;                        (* queueID does not refer to a slot's incoming queue *)
  214.     kMailLtrNotOpen*                = -15048;                        (* letter is not open, probably not cached in inQ *)
  215.     kMailMissingMailCat*            = -15049;                        (* trying to create message in inq, with no postIt *)
  216.     kMailCannotWriteMailCat*        = -15050;                        (* cannot update a mail catentry *)
  217.     kMailTooManyTagsPerLetter*    = -15051;                        (* cannot add more than kMaxTagsPerLetter tags *)
  218.     kMailGwyDead*                = -15052;                        (* MSAM died *)
  219.     kMailIgnoredErr*                = -15053;                        (* ePPC message was ignored *)
  220.     kMailLengthErr*                = -15054;                        (* ePPC message did not complete *)
  221.     kMailTooManyErr*                = -15055;                        (* Too many* = request outstanding, *)
  222.     kMailNoMSAMErr*                = -15056;                        (* no MSAMs found in mailbox! or for command *)
  223.     kMailCancelled*                = -15057;
  224.     kMailSlotSuspended*            = -15058;
  225.     kMailMSAMSuspended*            = -15059;
  226.     kMailBadSlotInfo*            = -15060;
  227.     kMailMalformedContent*        = -15061;                        (* a mailed structure is malformed *)
  228.     kMailNoSuchSlot*                = -15062;                        (* no such slot *)
  229.     kMailBadLtrInfo*                = -15063;                        (* bad info there, can't change *)
  230.     kMailSetFailed*                = -15064;                        (* could not set letter info *)
  231.     kMailBadConfig*                = -15065;                        (* MSAM has bad config info *)
  232.     kMailBadMSAM*                = -15066;                        (* bad MSAM*: not usable* = reason unspec, *)
  233.     kMailCannotLkupServerSlots*    = -15067;                        (* cannot lookup adas for server mail slots *)
  234.     kMailBadState*                = -15068;                        (* the state specifiy is not in any of defined *)
  235.  
  236. (* AOCE Messaging Errors (-15090 to -15169) *)
  237.     kIPMCantCreateIPMCatEntry*    = -15090;
  238.     kIPMInvalidMsgType*            = -15091;                        (* bad msg hint *)
  239.     kIPMInvalidProcHint*            = -15092;                        (* bad proc hint *)
  240.     kIPMInvalidOffset*            = -15093;                        (* bad offset for read/write *)
  241.     kIPMUpdateCatFailed*            = -15094;
  242.     kIPMMsgTypeReserved*            = -15095;
  243.     kIPMNotInABlock*                = -15096;
  244.     kIPMNestedMsgOpened*            = -15097;
  245.     kIPMA1HdrCorrupt*            = -15098;
  246.     kIPMCorruptDataStructures*    = -15099;
  247.     kIPMAbortOfNestedMsg*        = -15100;
  248.     kIPMBlockIsNotNestedMsg*        = -15101;
  249.     kIPMCacheFillError*            = -15102;
  250.     kIPMInvalidSender*            = -15103;
  251.     kIPMNoRecipientsYet*            = -15104;
  252.     kIPMInvalidFilter*            = -15105;
  253.     kIPMAttrNotInHdr*            = -15106;
  254.     kIPMBlkNotFound*                = -15107;
  255.     kIPMStreamErr*                = -15108;                        (* Error on stream (should this ever go out?) *)
  256.     kIPMPortClosed*                = -15109;                        (* Port closed (should this ever go out?) *)
  257.     kIPMBinBusy*                    = -15110;
  258.     kIPMCorruptedBin*            = -15111;
  259.     kIPMBadQName*                = -15112;
  260.     kIPMEndOfBin*                = -15113;
  261.     kIPMBinNeedsConversion*        = -15114;
  262.     kIPMMgrInternalErr*            = -15115;
  263.     kIPMEltBusy*                    = -15116;
  264.     kIPMEltClosedNotDeleted*        = -15117;
  265.     kIPMBadContext*                = -15118;
  266.     kIPMContextIsClosing*        = -15119;
  267.     kIPMeoQ*                        = -15120;
  268.     kIPMQOutOfSpace*                = -15121;
  269.     kIPMEltNotFound*                = -15122;
  270.     kIPMBinOutOfSpace*            = -15123;
  271.     kIPMeoCatEntry*                = -15124;
  272.     kIPMeoElt*                    = -15125;
  273.     kIPMQBusy*                    = -15126;
  274.     kIPMNotSameBin*                = -15127;
  275.     kIPMNoMoreServices*            = -15128;
  276.     kIPMLookupAttrTooBig*        = -15129;                        (* attribute in lookup is too big *)
  277.     kIPMUnknownUAM*                = -15130;
  278.     kIPMUnsupportedLogin*        = -15131;
  279.     kIPMLogInUnknown*            = -15132;
  280.     kIPMNoMoreFilters*            = -15133;
  281.     kIPMCouldNotReadInfoReply*    = -15134;
  282.     kIPMInvalidUser*                = -15135;
  283.     kIPMNoMoreSessions*            = -15136;
  284.     kIPMNilUserProc*                = -15137;
  285.     kIPMBadCatSize*                = -15138;
  286.     kIPMIncompleteMsg*            = -15139;
  287.     kIPMNoResponsibleTunnel*        = -15140;
  288.     kIPMAccessDenied*            = -15141;
  289.     kIPMReplyParamUnderrun*        = -15142;                        (* Too few reply parameters *)
  290.     kIPMReplyParamOverrun*        = -15143;                        (* Too many reply parameters *)
  291.     kIPMRequestParamUnderrun*    = -15144;                        (* Too few request parameters *)
  292.     kIPMOutOfSync*                = -15145;                        (* Protocol sync. error *)
  293.     kIPMNoAttrsFound*            = -15146;                        (* couldn't find any attrs in lookup *)
  294.     kIPMWrongAttrTag*            = -15147;                        (* wrong attr tag in adas lookup *)
  295.     kIPMNullCID*                    = -15148;                        (* null cid in enumerate *)
  296.     kIPMBadMailSlotAttrVal*        = -15149;                        (* invalid mailslot attr value *)
  297.  
  298.  
  299. (* $ALIGN RESET*)
  300. (* $POP*)
  301.  
  302.  END OCEErrors.
  303.